package wwl.lsf;

import java.util.Iterator;
import java.util.ServiceLoader;

public class CarDemo {

  public static void main(String[] args) {
    ServiceLoader<Car> load = ServiceLoader.load(Car.class);
    Iterator<Car> iterator = load.iterator();
    while (iterator.hasNext()) {
      iterator.next().getColor();
    }
  }

}
